<template>
    <el-config-provider :locale="zhCn">
        <router-view></router-view>
    </el-config-provider>
</template>
<script setup lang="ts">
import { onMounted, watch } from 'vue';
import { useRoute } from 'vue-router';
import zhCn from 'element-plus/es/locale/lang/zh-cn';

const route = useRoute();

onMounted(() => {
    // Modules onMounted mark, Please do not remove.
});

// 监听路由变化时更新浏览器标题
watch(
    () => route.path,
    () => {
        // setTitleFromRoute();
    }
);
</script>
